package com.ptu.mapper;

import com.ptu.entity.Duty;
import com.ptu.entity.Employee;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface DutyMapper {

    //增加考勤的信息
    public int addDuty(@Param("eID") String eID, @Param("date") String date, @Param("time") String time);

    //查询指定的考勤信息
    public Duty queryDuty(@Param("eID") String eID, @Param("date") String date);


    //修改考勤的信息
    public int updateDuty(@Param("eID") String eID, @Param("date") String date, @Param("time") String time);



    //查询考勤信息操作
    public List<Duty> queryDutes();
    //是否签过到
    public String isCheckin(@Param("eID") String eID, @Param("date") String date, @Param("time") String time);
    //是否签过退

    public  String isCheckout(@Param("eID") String eID, @Param("date") String date, @Param("time") String time);
    public Duty test(@Param("eID") String eID);
    //查询所有duty
    List<Duty> findAllDuty(@Param("currIndex") Integer currIndex, @Param("pageSize") Integer pageSize);
    //查询所有duty的数量
    int AllDutyNum();

    List<Duty> ByDateAndID(@Param("eID") String eID, @Param("date") String date, @Param("currIndex") Integer currIndex, @Param("pageSize") Integer pageSize);
    List<Duty> getDutyByDate(@Param("date") String date, @Param("currIndex") Integer currIndex, @Param("pageSize") Integer pageSize);
    List<Duty> getMyDuty(@Param("eID") String eID, @Param("currIndex") Integer currIndex, @Param("pageSize") Integer pageSize);
    int myDutyNum(@Param("eID") String eID);
    int getCountByDate(@Param("date") String date);
    int getCountByDateAndID(@Param("date") String date, @Param("eID") String eID);

    List<Duty> selectMore(String empid, String deptno, String dtdate);
}
